from typing import Optional
from datetime import datetime
from pydantic import BaseModel
from schemas.flower import FlowerModel


class CreateShoppingCartProductRequest(BaseModel):
    created_on: Optional[datetime] = None
    created_by: Optional[int] = None
    customer_id: Optional[int] = None
    flower_id: int
    quantity: Optional[int] = 1


class UpdateShoppingCartProductQuantityRequest(BaseModel):
    updated_on: Optional[datetime] = None
    id: int
    quantity: Optional[int] = 1


class ShoppingCartItem(BaseModel):
    id: int
    quantity: Optional[int] = 1
    flower: FlowerModel
